// 引入express
var express = require('express');
// 引入controller
const {registerControl,loginControl} = require('../controller/userController')
// 使用expresss实例化router
var userRouter = express.Router();
/* GET users listing. */
// userRouter.get('/', function(req, res, next) {
//   res.send('respond with a resource');
// });
// 注册接口,跳转到control中处理相关逻辑
userRouter.post('/register',registerControl)

// 登录接口，跳转到control中处理相关逻辑
userRouter.post('/login',loginControl)
module.exports = userRouter;
